/*
 * @Author: Leander 
 * @Date: 2019-03-12 17:13:09 
 * @Last Modified by: Leander
 * @Last Modified time: 2019-03-13 09:34:35
 */

import * as getData from './getData'

const install = function (Vue) {
  if (install.installed) return
  install.installed = true

  //定义属性到Vue原型中
  Object.defineProperties(Vue.prototype, {
    $fetch: {
      get() {
        return getData
      }
    }
  })
}

export default {
  install
}
